package com.wsdcd.zlg.model.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class User {
    private int id;
    private String username;
    private String password;
    private String createBy;
    private String createTime;

    public User(String createBy,String createTime){
        this.createBy = createBy;
        this.createTime = createTime;
    }
    @Override
    public String toString() {
        return "用户编号为："+id+",用户名为：'"+username+",密码为："+password+",创建者为：" + createBy +", 创建时间为：" + createTime;
    }
}
